@layout("/common/_container.html",{js:["/assets/modular/recy/article/article.js","/assets/common/libs/rapid-validator/prototype_for_validation.js","/assets/common/libs/rapid-validator/validation_cn.js","/assets/common/libs/rapid-validator/tooltips.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">文章表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <form>
                        <div class="layui-form toolbar">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="id" name="id" placeholder="编号" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="title" name="title" placeholder="标题" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="content" name="content" placeholder="文章内容" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="tagCode" name="tagCode" placeholder="唯一识别码" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="linkUrl" name="linkUrl" placeholder="链接" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="isSend" name="isSend" placeholder="发送状态" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="articleType" name="articleType" placeholder="文章类别" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="iconPath" name="iconPath" placeholder="缩略图" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="subTitle" name="subTitle" placeholder="子标题" autocomplete="off"/>
                                </div>
                                <div class="layui-inline">
                                    <input class="layui-input" type="text" id="imagePath" name="imagePath" placeholder="文章照片" autocomplete="off"/>
                                </div>


                                <div class="layui-inline">
                                    <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                    @if(shiro.hasPermission("/article/add")){
                                    <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                    @}
                                    @if(shiro.hasPermission("/article/delete")){
                                    <button id="btnDel" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>删除</button>
                                    @}
                                    <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                                </div>
                            </div>
                        </div>
                    </form>
                    <table class="layui-table" id="articleTable" lay-filter="articleTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/article/edit")){
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    @}
    @if(shiro.hasPermission("/article/delete")){
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    @}
</script>

@}